import request from '@/utils/request'

const API_NAME = '/api/user'
export default {
  // 登录接口
  login(userInfo) {
    return request({
      url: `${API_NAME}/login`,
      method: 'post',
      data: userInfo
    })
  },
  // 提交认证
  saveUserInfoAuah(userAuthVo) {
    return request({
      url: `${API_NAME}/auth/commitUserInfoAuth`,
      method: 'post',
      data: userAuthVo
    })
  },

  // 获取用户信息
  getUserInfo(){
    return request({
      url: `${API_NAME}/auth/getUserInfoById`,
      method: 'get'
    })

  }

}
